package cn.hou.java.designpattern._06strategy;

public class Test {
	
	public static void main(String[] args) {
		//要执行策略A
		Context context=new Context(new StrategyA());
		context.plan();
		//情况有变,执行策略B
		context.setStrategy(new StrategyB());//重新指定策略
		context.plan();		
	}
}
